package entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Controleur entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "controleur", schema = "public")
public class Controleur implements java.io.Serializable {

	// Fields

	private Integer id;
	private String login;
	private String password;

	// Constructors

	/** default constructor */
	public Controleur() {
	}

	/** full constructor */
	public Controleur(String login, String password) {
		this.login = login;
		this.password = password;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "login")
	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}